package cn.iocoder.yudao.module.infra.tts.impl;

import cn.iocoder.yudao.module.infra.tts.ITTSApi;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class SimpleTTSApi implements ITTSApi {

    @Override
    public byte[] convertTextToSpeech(String voice, String voice_path, String voice_hash, String voice_suffix, String response_format, String input) {
        throw new UnsupportedOperationException("method is deprecated");
    }

    @Override
    public byte[] convertTextToSpeech(Integer audioToneId, String cloneVoiceId,
                                      String voice, String voice_path, String voice_hash,
                                      String voice_suffix, String response_format, String input) {
        return convertTextToSpeech(voice, voice_path, voice_hash, voice_suffix, response_format, input);
    }
}
